import { Column, Entity, PrimaryColumn } from "typeorm";

@Entity()
export class Contents {
  // 文件名
  @PrimaryColumn()
  fileName: string;

  @Column({ nullable: true })
  id: number;

  @Column({ nullable: true })
  href: string;

  @Column({ nullable: true })
  order: number;

  @Column({ nullable: true })
  level: number;

  @Column({ nullable: true })
  text: string;

  @Column({ nullable: true })
  label: string;

  @Column({ nullable: true })
  pid: string;

  @PrimaryColumn()
  navid: string;
}
